package com.selune.online.ordering.system.project.api.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 订单详情表(OrderDetail)实体类
 *
 * @author xiaoyp
 * @since 2020-02-20
 */

@Data
@Accessors(chain = true)
public class OrderDetail implements Serializable {
	private static final long serialVersionUID = -29602390951956843L;
	
	/**
	 * 表id，自增
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 订单id
	 */
	private Long orderId;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 商品名称
	 */
	private String goodsName;
	/**
	 * 商品单价
	 */
	private Double goodsPrice;
	/**
	 * 商品数量
	 */
	private Long goodsQuantity;
	/**
	 * 商品图片
	 */
	private String goodsPicture;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
}